import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'file_upimage_response.freezed.dart';
part 'file_upimage_response.g.dart';

@freezed
class FileUpimageResponse with _$FileUpimageResponse {
  const factory FileUpimageResponse({
    @JsonKey(name: "c") required int c,
    @JsonKey(name: "m") required String m,
    @JsonKey(name: "d") required D d,
  }) = _FileUpimageResponse;

  factory FileUpimageResponse.fromJson(Map<String, dynamic> json) =>
      _$FileUpimageResponseFromJson(json);
}

@freezed
class D with _$D {
  const factory D({
    @JsonKey(name: "face") required String face,
    @JsonKey(name: "face_200") required String face200,
  }) = _D;

  factory D.fromJson(Map<String, dynamic> json) => _$DFromJson(json);
}
